package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ApArticleMapper extends BaseMapper<ApArticle> {
    /**
     * app端文章展示接口
     * @param dto  入参
     * @param type 1表示上拉，2表示下拉
     * @return 返回
     */
    public List<ApArticle> loadArticleList(@Param("dto") ArticleHomeDto dto,
                                           @Param("type") Short type);

}
